home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 422 b | 29 lines | [TEXT/CWIE] |
- // FontNumber.cp
-
- #ifndef FontNumber_h
- #include "FontNumber.h"
- #endif
-
- FontNumber FontNumber::Make( int16 value )
- {
- if ( value == systemFont )
- return System();
-
- if ( value == applFont )
- return Application();
-
- return value;
- }
-
- FontNumber FontNumber::System()
- {
- static int16 font = GetSysFont();
- return font;
- }
-
- FontNumber FontNumber::Application()
- {
- static int16 font = GetAppFont();
- return font;
- }
-